//
//  YPScrollView.h
//  YPScrollView
//
//  Created by lanou3g on 15/12/15.
//  Copyright © 2015年 王艳苹. All rights reserved.
//

#import <UIKit/UIKit.h>
@class YPScrollView;
typedef UIImageView* (^YSIndexBlock) (NSInteger);

@protocol YPScrollVieDelegate <NSObject>

- (void)AddTapGesture:(YPScrollView*)scrollview index:(NSInteger)index;

@end
@interface YPScrollView : UIView
//初始化方法网络图片
- (instancetype)initWithFrame:(CGRect)frame images:(NSArray<NSString*>*)array;
//获取下标的block
@property (nonatomic,copy) YSIndexBlock indexBlock;
//点击图片的delegate
@property (nonatomic,weak) id<YPScrollVieDelegate>delegate;
@end
